home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / program / snpd9611.zip / WB_FAPND.C < prev    next >
C/C++ Source or Header  |  1996-11-24  |  596b  |  28 lines

  1. .I 0 3
  2. /* +++Date last modified: 23-Nov-1996 */
  3.  
  4. /*
  5. .D 1 1
  6. .I 16 1
  7. #include "snipfile.h"               /* Contains prototype for fdcopy()  */
  8. .D 17 1
  9. .I 36 12
  10.       if (fdto >= 0)
  11.       {
  12.             if (Success_ == fdcopy(fdfrom, fdto))
  13.             {
  14.                   close(fdto);
  15.                   close(fdfrom);
  16.                   return Success_;
  17.             }
  18.             else
  19.             {
  20.                   close(fdto);
  21.                   remove(to);             /* delete any partial file  */
  22. .D 37 31
  23. .I 69 3
  24.       close(fdfrom);
  25.       return Error_;
  26. }
  27. .D 70 5
  28.